﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Container.aspx.cs" Inherits="demo.Pages.Container" %>

<%@ Register Assembly="Water" Namespace="Water.Web.Controls" TagPrefix="page" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%">
            <tr>
                <td valign="top" style="width:450px;">
                    <fieldset>
                        <legend>强大的Container</legend>
                        <ul>
                            <li>功能异常强大，且控制灵活</li>
                            <li>优雅的布局展现功能</li>
                            <li>可设置显示列数</li>
                            <li>Prompt功能</li>
                            <li>支持多种模板（目前支持：<br />ItemTemplate、EditTemplate、InsertTemplate、<br />QueryTemplate、FooterTemplate、HeaderTemplate）</li>
                            <li>支持多种模板间的切换</li>
                            <li>和ObjectDataSource控件结合使用可零代码实现数据的增、删、改、查<br />(实现了Water框架内的一种数据结构、可自动收集子控件的信息)</li>
                            <li>可嵌套显示其他页面(以iframe的形式)</li>
                        </ul>
                    </fieldset>
                </td>
                <td valign="top">
                    <page:Container ID="Container1" runat="server" TitleText="普通">
                        <ItemTemplate>
                            <page:TextBox ID="TextBox1" runat="server" Prompt="employees.id"></page:TextBox>
                            <page:TextBox ID="TextBox2" runat="server" Prompt="employees.firstname"></page:TextBox>
                            <page:TextBox ID="TextBox3" runat="server" Prompt="employees.lastname"></page:TextBox>
                            <page:TextBox ID="TextBox4" runat="server" Prompt="employees.email"></page:TextBox>
                        </ItemTemplate>
                    </page:Container>
                    <br />
                    <page:Container ID="Container2" runat="server" TitleText="设置Columns" Columns="2">
                        <ItemTemplate>
                            <page:TextBox ID="TextBox1" runat="server" Prompt="employees.id"></page:TextBox>
                            <page:TextBox ID="TextBox2" runat="server" Prompt="employees.firstname"></page:TextBox>
                            <page:TextBox ID="TextBox3" runat="server" Prompt="employees.lastname"></page:TextBox>
                            <page:TextBox ID="TextBox4" runat="server" Prompt="employees.email"></page:TextBox>
                        </ItemTemplate>
                    </page:Container>
                    <br />
                    <page:Container ID="Container3" runat="server" TitleText="显示Footer和Header" Columns="2">
                        <ItemTemplate>
                            <page:TextBox ID="TextBox1" runat="server" Prompt="employees.id"></page:TextBox>
                            <page:TextBox ID="TextBox2" runat="server" Prompt="employees.firstname"></page:TextBox>
                            <page:TextBox ID="TextBox3" runat="server" Prompt="employees.lastname"></page:TextBox>
                            <page:TextBox ID="TextBox4" runat="server" Prompt="employees.email"></page:TextBox>
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:Label ID="Label1" runat="server" Text="Footer"></asp:Label></FooterTemplate>
                        <HeaderTemplate>
                            <asp:Label ID="Label1" runat="server" Text="Header"></asp:Label></HeaderTemplate>
                    </page:Container>
                    <br />
                    <page:Container ID="Container4" runat="server" TitleText="改变TitleImage" Columns="2" TitleImageUrl="~/images/user1.gif">
                        <ItemTemplate>
                            <page:TextBox ID="TextBox1" runat="server" Prompt="employees.id"></page:TextBox>
                            <page:TextBox ID="TextBox2" runat="server" Prompt="employees.firstname"></page:TextBox>
                            <page:TextBox ID="TextBox3" runat="server" Prompt="employees.lastname"></page:TextBox>
                            <page:TextBox ID="TextBox4" runat="server" Prompt="employees.email"></page:TextBox>
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:Label ID="Label1" runat="server" Text="Footer"></asp:Label></FooterTemplate>
                        <HeaderTemplate>
                            <asp:Label ID="Label1" runat="server" Text="Header"></asp:Label></HeaderTemplate>
                    </page:Container>
                    <br />
                    <page:Container ID="Container5" runat="server" TitleText="不显示边框" Columns="2" TitleImageUrl="~/images/user1.gif" DisplayBorder="false">
                        <ItemTemplate>
                            <page:TextBox ID="TextBox1" runat="server" Prompt="employees.id"></page:TextBox>
                            <page:TextBox ID="TextBox2" runat="server" Prompt="employees.firstname"></page:TextBox>
                            <page:TextBox ID="TextBox3" runat="server" Prompt="employees.lastname"></page:TextBox>
                            <page:TextBox ID="TextBox4" runat="server" Prompt="employees.email"></page:TextBox>
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:Label ID="Label1" runat="server" Text="Footer"></asp:Label></FooterTemplate>
                        <HeaderTemplate>
                            <asp:Label ID="Label1" runat="server" Text="Header"></asp:Label></HeaderTemplate>
                    </page:Container>
                    <br />
                    <page:Container ID="Container6" runat="server" TitleText="可设置是否启用Prompt功能" Columns="2" TitleImageUrl="~/images/user1.gif"
                        Promptable="false">
                        <ItemTemplate>
                            <page:TextBox ID="TextBox1" runat="server" Prompt="employees.id"></page:TextBox>
                            <page:TextBox ID="TextBox2" runat="server" Prompt="employees.firstname"></page:TextBox>
                            <page:TextBox ID="TextBox3" runat="server" Prompt="employees.lastname"></page:TextBox>
                            <page:TextBox ID="TextBox4" runat="server" Prompt="employees.email"></page:TextBox>
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:Label ID="Label1" runat="server" Text="Footer"></asp:Label></FooterTemplate>
                        <HeaderTemplate>
                            <asp:Label ID="Label1" runat="server" Text="Header"></asp:Label></HeaderTemplate>
                    </page:Container>
                    <br />
                    <page:Container ID="Container7" runat="server" TitleText="嵌套显示其他页面" Src="Datepicker.aspx" PackageType="Div"  Height="500">
                    </page:Container>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
